package com.common.exception;

import org.springframework.security.core.AuthenticationException;

/**
 * @author 路亚
 * @version 0.1
 * @className JavaSecurityException
 * @description
 * @date 2024/11/25 21:21
 * @since jdk11
 */
public class JavaSecurityException extends AuthenticationException {
    private CodeAndMsg codeAndMsg;

    public JavaSecurityException(CodeAndMsg codeAndMsg) {
        super(codeAndMsg.getMsg());
        this.codeAndMsg = codeAndMsg;
    }

    public CodeAndMsg getCodeAndMsg() {
        return codeAndMsg;
    }
}
